/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dotexe.webframework.core.collectionsource;

import org.json.JSONException;
import org.json.JSONObject;

/**
*
* @author jovan.tomasevic
*/
public class SourceField extends JSONObject {
   public SourceField() throws JSONException{
       this.put("name", JSONObject.NULL);
       this.put("type", JSONObject.NULL);
   }

   public String getName() throws JSONException{
       return this.getString("name");
   }
   public void setName(String name) throws JSONException{
       this.put("name", name);
   }
       public String getType() throws JSONException{
       return this.getString("type");
   }
   public void setType(String name) throws JSONException{
       this.put("type", name);
   }
}